package com.zzc.service.item.api;

import com.zzc.legou.item.entity.Spu;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

import java.util.List;

@RequestMapping("/spu")
public interface SpuApi {
    @ApiOperation(value = "查询所有", notes = "查询所有spu")
    @GetMapping("/list-all")
    public List<Spu> selectAll();


    @ApiOperation(value = "加载", notes = "根据ID加载")
    @GetMapping("/edit/{id}")
    Spu edis(@PathVariable("id") Long spuId);
}
